clear all
load ParEst_eh0_time0_Mex_guys
Chute = [1.32, ParEst_eh0_time0_Mex_guys(7:10)];
HandleLo = @Principal_A2_n;
LoBo = [-1.25, 0.1, 0.1, 0.1, 0.1];
HiBo = [2.75, 10, 10, 10, 10];
%options = optimoptions(@simulannealbnd, ...
 %                    'PlotFcn',{@saplotbestf,@saplottemperature,@saplotf,@saplotbestx,@saplotx},...
  %                    'FunctionTolerance',10,'ReannealInterval',2, ...
   %                  'InitialTemperature', 2*10^4*[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 10 10 10 10 60], ...
    %                 'TemperatureFcn', @temperaturefast, 'MaxStallIterations', 4000);
                 options = saoptimset( ...
                    'PlotFcn',{@saplotbestf,@saplottemperature,@saplotf,@saplotbestx,@saplotx},...
                     'TolFun',3000,'ReannealInterval',4, ...
                     'InitialTemperature',10*10^2*[4 10 10 10 10], ...
                     'TemperatureFcn', @temperaturefast, 'StallIterLimit', 1000);
[x,fval,exitflag,output]  = simulannealbnd(HandleLo, Chute, LoBo, HiBo, options)
ParEst_eh0_time2_Mex_guys = x;
save ParEst_eh0_time2_Mex_guys ParEst_eh0_time2_Mex_guys